package cn.csc.module.product.controller.app.spu.vo;

import cn.csc.framework.common.pojo.PageParam;
import cn.csc.module.product.controller.app.category.vo.AppCategoryProductRespVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.math.BigInteger;
import java.util.List;

/**
 * @author liuchuang
 * @version 1.0
 * @date 2024/9/10 15:39
 * @modify
 */
@Data
public class AppSpuSearchPageReqVO extends PageParam {

    @ApiModelProperty(value = "商品名称")
    @Length(max = 255, message = "商品名称长度不超过255")
    private String name;

    @ApiModelProperty(value = "类目ID")
    private BigInteger categoryId;

    @ApiModelProperty(value = "字段排序 1:审核时间 2:价格降序 3:价格升序")
    @Min(value = 1 , message = "字段排序最小值为1")
    @Max(value = 3 , message = "字段排序最小值为3")
    private Integer orderDesc;

    @ApiModelProperty(value = "子类目的集合")
    private List<AppCategoryProductRespVO> categorys;

}
